|
|
Thorsten Froehlich <tho### [at] trfde> wrote:
: You should be able to write a function and call it just the same way as you
: call functions in isosurfaces: function { foo(x,y,z) }
What I mean is that if I write something like this:
#declare MyImageFunction = function 256,256 { pattern { ... } }
I get an error at the first '256' (if I remember correctly; I can't confirm
this right now as I'm not at home).
PS: It might be that it works and that I just typoed somewhere (eg. forgot
the comma or something), and if this is so, just ignore this... :)
I'll get home soon and test it again.
--
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}// - Warp -
Post a reply to this message
|
|